<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:t="http://myfaces.apache.org/tomahawk">
<f:subview id="relatorio">
		<ui:composition template="/WEB-INF/layout/template.xhtml">
			<ui:define name="conteudo">

				<br/>
<br/>
				<h:form>
					<p:dataTable var="aula" value="#{relatorioBean.aulas}">
				
						<p:column>
							<f:facet name="header">  
                    Data  
            			</f:facet>
							<h:outputText value="#{aula.data}" />
						</p:column>

						<p:column>
							<f:facet name="header">  
                    Conteudo 
            			</f:facet>
							<h:outputText value="#{aula.conteudo}" />
						</p:column>

						<p:column>
							<f:facet name="header">  
                    Disciplina  
          			  </f:facet>
							<h:outputText value="#{aula.disciplinas.nome}" />
						</p:column>

						<p:column>
							<f:facet name="header">  
                    Aluno  
          			  </f:facet>
          			  			<!--
								<p:commandButton value="Lista Alunos" onclick="dlg1.show();"
									type="button" />
								-->
						<p:panel header="Lista Alunos" toggleable="true" closable="true">
							<t:dataList var="aluno" value="#{aula.alunos}">
								<h:outputText value="#{aluno.nome}" />
								<br />
							</t:dataList>
						</p:panel>
						<!--
									<p:dialog header="Lista Alunos" widgetVar="dlg1">
										<t:dataList var="aluno" value="#{aula.alunos}">
											<h:outputText value="#{aluno.nome}" /><br/>
										</t:dataList>
									</p:dialog>-->
						</p:column>
						
					-</p:dataTable>
					<h:commandButton value="Cancelar" style="width:100px;"
						action="home" />
				</h:form>


			</ui:define>
		</ui:composition>
</f:subview>
</html>